package com.linkallcloud.core.service;

import java.util.List;

import com.linkallcloud.core.domain.FlowStep;
import com.linkallcloud.core.dto.Trace;

public interface IFlowStepService<T extends FlowStep> extends IService<T> {

    List<T> findByObj(Trace t, Integer flowType, Long objId, String objUuid, String objType, String objPropType);

    List<T> findByTwf(Trace t, Long twfInstId, String twfInstUuid);

    boolean flow(Trace t, T flow);

    void progress(Trace t, Long twfInstId, String twfInstUuid, int progress);

    void complete(Trace t, Long twfInstId, String twfInstUuid, int op);

}
